# # import SendKeys
# import subprocess
# # password = "PASSWORD"
# command = "runas /user:administrator Notepad.exe"
# subprocess.Popen(command)
# # send = """%s{ENTER}""" % (password)
# # SendKeys.SendKeys(send)
# subprocess.Popen(["runas", "/user:administrator", "cmd"])

# 成功打开，必须START CMD
import os
# a=os.popen("start ipconfig")#必须加start【但是一闪而过】
# a=os.popen("start tasklist")#【但是一闪而过】
# a=os.popen("start cmd")#必须加start【成功打开用户的】
# print(a.read())

# os.popen(cmd='start notepad')#成功
# os.popen("start cmd")#成功
# os.popen("python --version")#没反应
# os.popen("start msedge")#成功
# a=os.popen(cmd='start tasklist')一闪而过
# print(a.read())

# 杀死程序【成功！！】
def kill_msedge():
    os.popen("start taskkill /f /im msedge.exe")
    os.popen("start taskkill /f /im msedgedriver.exe")
    os.popen("start taskkill /f /im conhost.exe")
kill_msedge()